<form class="layui-form" lay-filter="tpl_staff{$staff_id}" action="{:url('staff/saveData')}">
	
	<input type="hidden" name="staff_id" class="layui-input" />
	{if condition="MEMBER_ID EQ '193' OR MEMBER_ID EQ '217' OR MEMBER_ID EQ '494' OR MEMBER_ID EQ '202' OR MEMBER_ID EQ '10090' OR MEMBER_ID EQ '452'  OR MEMBER_ID EQ '202' OR MEMBER_ID EQ '486' OR MEMBER_ID EQ '829'"}
	<div class="layui-form-item">
		<label class="layui-form-label">所属分站</label>
		<div class="layui-input-inline ajax-select-site">
			<select name="site_id"  lay-verify="required" lay-filter="site_id{$staff_id}" lay-search="" disabled="disabled">
				<option value="117">军采</option>
				{volist name="get_site_list" id="list"}
				<option value="{$list.site_id}">{$list.site_name}</option>
				{/volist}
			</select>
		</div>
	</div>
	<div class="layui-form-item" style="display:none;">
		<label class="layui-form-label">所属部门</label>
		<div class="layui-input-inline">
			<select name="department_id" lay-filter="department_id{$staff_id}" disabled="disabled">
				
			</select>
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">登录账号</label>
		<div class="layui-input-inline">
			<input type="text" name="username" lay-verify="required" placeholder="请输入登录账号" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">初始登录密码</label>
		<div class="layui-input-inline">
			<input type="password" name="password" placeholder="请输入初始登录密码" autocomplete="off" class="layui-input">
			{if condition="$staff_id NEQ ''"}
			<div class="layui-form-mid layui-word-aux">不填写则不修改密码</div>
			{/if}
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">员工姓名</label>
		<div class="layui-input-inline">
			<input type="text" name="realname" lay-verify="required" placeholder="请输入员工姓名" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">员工电话</label>
		<div class="layui-input-inline">
			<input type="text" name="phone" lay-verify="required" placeholder="请输入员工电话" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">员工公司座机</label>
		<div class="layui-input-inline">
			<input type="text" name="tel" placeholder="请输入员工公司座机" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">员工Email</label>
		<div class="layui-input-inline">
			<input type="email" name="email" placeholder="请输入员工电子邮箱" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item" style="display:none;">
		<label class="layui-form-label">性别</label>
		<div class="layui-input-inline">
			<input type="radio" name="sex" value="男" title="男" checked>
      		<input type="radio" name="sex" value="女" title="女">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">职位</label>
		<div class="layui-input-inline">
			<select name="position" lay-filter="position" disabled="disabled">
				<option value="1">站点管理员</option>
				<option value="2">主管</option>
				<option value="3">助理</option>
				<option value="4">普通职员</option>
			</select>
		</div>
	</div>
{else /}
<div class="layui-form-item" style="display:none;">
	<label class="layui-form-label">所属分站</label>
	<div class="layui-input-inline ajax-select-site">
		<select name="site_id"  lay-verify="required" lay-filter="site_id{$staff_id}" lay-search="" disabled="disabled">
			<option value="117">军采</option>
			{volist name="get_site_list" id="list"}
			<option value="{$list.site_id}">{$list.site_name}</option>
			{/volist}
		</select>
	</div>
</div>
<div class="layui-form-item" style="display:none;">
	<label class="layui-form-label">所属部门</label>
	<div class="layui-input-inline">
		<select name="department_id" lay-filter="department_id{$staff_id}" disabled="disabled">
			
		</select>
	</div>
</div>
<div class="layui-form-item">
	<label class="layui-form-label">登录账号</label>
	<div class="layui-input-inline">
		<input type="text" name="username" lay-verify="required" placeholder="请输入登录账号" autocomplete="off" class="layui-input" disabled="disabled">
	</div>
</div>
<div class="layui-form-item">
	<label class="layui-form-label">初始登录密码</label>
	<div class="layui-input-inline">
		<input type="password" name="password" placeholder="请输入初始登录密码" autocomplete="off" class="layui-input">
		{if condition="$staff_id NEQ ''"}
		<div class="layui-form-mid layui-word-aux">不填写则不修改密码</div>
		{/if}
	</div>
</div>
<div class="layui-form-item">
	<label class="layui-form-label">员工姓名</label>
	<div class="layui-input-inline">
		<input type="text" name="realname" lay-verify="required" placeholder="请输入员工姓名" autocomplete="off" class="layui-input" disabled="disabled">
	</div>
</div>
<div class="layui-form-item">
	<label class="layui-form-label">员工电话</label>
	<div class="layui-input-inline">
		<input type="text" name="phone" lay-verify="required" placeholder="请输入员工电话" autocomplete="off" class="layui-input">
	</div>
</div>
<div class="layui-form-item">
	<label class="layui-form-label">员工公司座机</label>
	<div class="layui-input-inline">
		<input type="text" name="tel" placeholder="请输入员工公司座机" autocomplete="off" class="layui-input" disabled="disabled">
	</div>
</div>
<div class="layui-form-item">
	<label class="layui-form-label">员工Email</label>
	<div class="layui-input-inline">
		<input type="email" name="email" placeholder="请输入员工电子邮箱" autocomplete="off" class="layui-input" disabled="disabled">
	</div>
</div>
<div class="layui-form-item" style="display:none;">
	<label class="layui-form-label">性别</label>
	<div class="layui-input-inline">
		<input type="radio" name="sex" value="男" title="男" checked>
		  <input type="radio" name="sex" value="女" title="女">
	</div>
</div>
<div class="layui-form-item">
	<label class="layui-form-label">职位</label>
	<div class="layui-input-inline">
		<select name="position" lay-filter="position" disabled="disabled">
			<option value="1">站点管理员</option>
			<option value="2">主管</option>
			<option value="3">助理</option>
			<option value="4">普通职员</option>
		</select>
	</div>
</div>

{/if}
<div class="layui-form-item">
	<label class="layui-form-label">订单搜索</label>
	<div class="layui-input-inline">
		<select name="order_search" lay-filter="order_search">
			<option value="1">非绑定供应商</option>
			<option value="2">绑定供应商</option>
		</select>
	</div>
</div>
<div class="layui-form-item">
	<label class="layui-form-label">显示未指派订单</label>
	<div class="layui-input-inline">
		<select name="view_pre_order" lay-filter="view_pre_order">
			<option value="1">显示</option>
			<option value="2">不显示</option>
		</select>
	</div>
</div>
	<div class="layui-form-item">
		<div class="layui-input-block">
			<button type="button" class="layui-btn layui-btn-normal" lay-submit lay-filter="submit_staff">保存数据</button>
			<button type="reset" class="layui-btn layui-btn-primary">重置</button>
		</div>
	</div>
</form>
<script>
	// 赋值
	var staff_form_value = {$data};
	var get_city_department = "{:url('staff/getCityDepartment')}";
	var get_site_list_url = "{:url('site/ajaxSite')}";
</script>
<script src="/static/js/staff/staff_tpl.js" type="text/javascript" charset="utf-8"></script>